/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.dapai.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Data
@ApiModel(value = "租赁订单明细信息")
public class CompLeaseOrderDetailDTO implements Serializable {

    /**
     * 主键
     * id
     * isNullAble:0
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 公司id
     * isNullAble:0
     */
    @ApiModelProperty(value = "公司id")
    private Long compId;

    /**
     * 租赁订单id
     * isNullAble:0
     */
    @ApiModelProperty(value = "租赁订单id")
    private Long leaseOrderId;

    /**
     * 设备明细id
     * isNullAble:0
     */
    @ApiModelProperty(value = "设备明细id")
    private Long macScrewId;

    /**
     * 租赁开始日期
     * isNullAble:1
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "租赁开始日期")
    private Date startDate;

    /**
     * 数量
     * isNullAble:0
     */
    @ApiModelProperty(value = "数量")
    private Integer num;

    /**
     * 租赁到期日期
     * isNullAble:1
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "租赁到期日期")
    private Date endDate;

    /**
     * 总时长
     * isNullAble:0
     */
    @ApiModelProperty(value = "总时长")
    private Integer totalTime;


    /**
     * 是否出库0：否   1：是
     * isNullAble:0
     */
    @ApiModelProperty(value = "是否出库0：否   1：是")
    private Integer isOut;

    /**
     * 创建者
     * isNullAble:1
     */
    @ApiModelProperty(value = "创建者")
    private Long creator;

    /**
     * 创建时间
     * isNullAble:1
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

}
